package lumis.service.portalmanagement.importprincipal;

import lumis.doui.processaction.ProcessActionHandler;
import lumis.doui.table.TableSource;
import lumis.portal.PortalException;
import lumis.portal.principal.importprincipal.ImportPrincipalManagerFactory;

/**
 * imports process action handler.
 * 
 *
 * @version $Revision: 5362 $ $Date: 2006-12-15 19:58:24 -0200 (Fri, 15 Dec 2006) $
 * @since 4.0.8
 */
public class ImportPrincipalsProcessActionHandler extends ProcessActionHandler<TableSource>
{
	public void processAction() throws PortalException
	{
		String[] ids = (String [])this.getParameter("id");
		for(String id : ids)
		{
			ImportPrincipalManagerFactory.getImportPrincipalManager().writePrincipals(sessionConfig, id,  transaction);
		}
		
		addDefaultResponse();
	}
	
}
